package org.wolfengi.monitor.web;


import org.wolfengi.monitor.service.FShipTravelRateCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wolfengi
 * @since 2020-05-22
 */
@Controller
@RequestMapping("/shipTraveRate")
public class FShipTravelRateCountController {

    @Autowired
    private FShipTravelRateCountService fShipTravelRateCountService;

    @RequestMapping("/count")
    @ResponseBody
    public Map count() {
        Map<String, Object> maps = fShipTravelRateCountService.shipTravelRateCount();
        return maps;
    }
}
